<!--CONTETN-SIDEBAR-->
<div class="col-md-4 ">
	<!--TAB RANK-->
	<div role="tabpanel " id="tab-sibar">
	  <!-- Nav tabs -->
	  <ul class="nav nav-tabs" role="tablist">
	    <li role="presentation" class="active"><a href="#home" aria-controls="home" role="tab" data-toggle="tab"><i class="fa fa-bar-chart"></i> Anime</a></li>
	    <li role="presentation"><a href="#profile" aria-controls="profile" role="tab" data-toggle="tab"><i class="fa fa-bar-chart"></i> Cartoon</a></li>
	  </ul>

	  <!-- Tab panes -->
	  <div class="tab-content">
	    <div role="tabpanel" class="side tab-pane active" id="home">
	    	<ul>
	    	<?php if($ratings_anime != NULL){ foreach($ratings_anime as $value):?>
	    		<li>
	    			<a href="<?php echo base_url('info').'/'.$value['rewrite'].'-f'.$value['idphim'].'.html'?>" title="<?php echo $value['name']?>" class="chart-name">
	    				<i class="fa fa-angle-right"></i> <?php echo cut($value['name'],30);?>
	    				<span class="pull-right">
	    					<i class="fa fa-thumbs-o-up"></i> <?php echo $value['likeFilm']?>  <i class="fa fa-eye"></i> <?php echo $value['viewed']?>
	    				</span>
	    			</a>
	    		</li>
	    	<?php endforeach; }?>
	    	</ul>
	    </div>
	    <div role="tabpanel" class="side tab-pane" id="profile">
	    	<ul>
	    	<?php if($ratings_cartoon != NULL){ foreach($ratings_cartoon as $value): ?>
	    		<li>
	    			<a href="<?php echo base_url('info').'/'.$value['rewrite'].'-f'.$value['idphim'].'.html'?>" title="<?php echo $value['name']?>" class="chart-name">
	    				<i class="fa fa-angle-right"></i> <?php echo cut($value['name'],30);?> 
	    				<span class="pull-right">
	    					<i class="fa fa-thumbs-o-up"></i> <?php echo $value['likeFilm']?>  <i class="fa fa-eye"></i>  <?php echo $value['viewed']?>
	    				</span>
	    			</a>
	    		</li>
	    	<?php endforeach; } ?>
	    	</ul>
	    </div>
	  </div>
	</div>
	<!--END RANK-->
	<!--TRAILER-->
	<section class="trailer">
		<h3>Top Film</h3>
		<ul>
		<?php if($top_film != NULL){ foreach($top_film as $value): ?>
			<li>
				<a href="<?php echo base_url('info').'/'.$value['rewrite'].'-f'.$value['idphim'].'.html'?>" title="<?php echo $value['thumb'];?>" class="poster-left"><img class="img-responsive" src="<?php echo $value['thumb'];?>" alt=""></a>
				<div class="caption-right">
					<a href="<?php echo base_url('info').'/'.$value['rewrite'].'-f'.$value['idphim'].'.html'?>"><?php echo $value['name'];?></a>
					<?php echo CutName(RemoveHtml(UnHtmlChars($value['content'])),150);?>
				</div>
				<div class="info-like">
					<span><i class="fa fa-thumbs-o-up"></i> <?php echo $value['likeFilm']?></span>
					<span><i class="fa fa-eye"></i> <?php echo $value['viewed']?></span>
				</div>
			</li>
		<?php endforeach; }?>
		</ul>
	</section>
	<!--END TRAILER-->
	<!--FANPAGE-->
	<section class="fan-page hidden-sm hidden-xs hidden-md">
		<h3>FIND US ON FACEBOOK</h3>
		<div>
			 <iframe src="http://www.facebook.com/plugins/likebox.php?href=<?php if(!empty($fanpage)){ echo $fanpage;} ?>?ref=hl&ref_type=bookmark&amp;width=230&amp;colorscheme=light&amp;show_faces=true&amp;connections=6&amp;stream=false&amp;header=false&amp;height=270" scrolling="no" frameborder="0" scrolling="no" style="border: medium none; overflow: hidden; height: 270px; width: 360px;background:#fff;">
			</iframe> 
		</div>
	</section>
	<!--END FANPAGE-->
</div>
<!--END CONTETN SIDEBAR-->